2 Scenarios > 2.16 Internet Services > 2.16.3 Service Initialization

2.16.3
Figure 138: Service Initialization.
This section comprises the subsections Description, Used AT Commands, Flow Chart, Hints and Examples. To move to these subsections please use the Navigation Frame or the appro­priate buttons on the toolbar.
2.16.3.1
This chapter describes basic settings recommended to configure the internet services: FTP, SMTP, POP3, Socket and HTTP.
•
•
•
It is allowed to configure maximum 3 HTTP, 6 Sockets (The sum of Listener Sockets and Client Sockets is 6 and the number of Listener Sockets are limited by 2), 1 FTP, 1 POP3, 1 SMTP profiles within those 10 connection profiles.
•
•
The services can be configured to use any of the connections which have been configured during the connection initialization by setting the <conId> parameter accordingly.
•
It is possible for every service to setup the retransmission mechanism. The parameter like <tcpMR> and <tcpOT> can be set or the values specified with AT^SCFG will be used. Addi­tionally is it possible to set the <tcpIRT> parameter, but only with the AT^SCFG command.
-
-
-
The <tcpIRT> parameter determines the time (in seconds) the TCP/IP stack will wait before starting the first retransmission of packets during the initial connection establish­ment phase.
The following figure explain the principle of the retransmission mechanism:
Figure 139: The Retransmission mechanism.
2.16.3.2
For further details about the commands see [2].
2.16.3.3
2.16.3.3.1
•
Figure 140: FTP GET Initialization
Figure 141: FTP PUT Initialization
2.16.3.3.2
•
Figure 142: SMTP Initialization.
2.16.3.3.3
•
Figure 143: POP3 Initialization.
2.16.3.3.4
Socket Client UDP Initialization
•
Figure 144: Socket Client UDP Initialization.
Socket Listener TCP Initialization
•
Figure 145: Socket Listener TCP Initialization.
Socket Client TCP Initialization
•
Figure 146: Socket Client TCP Initialization.
2.16.3.3.5
•
Figure 147: HTTP Initialization.
2.16.3.4
•
Note that some terminals e.g. ZOC support the ASCII character set but some modules use the GSM character set per default. The problem is, that some special characters e.g. ‘@’ are coded differently in those character sets. It is advisible to set the <alphabet> parameter to 1.
•
The FTP PUT example shows how to upload the text file. In order to upload a binary file, the type of the <address> parameter should be set to “i”.
•
•
If the website requires <passwd> and <user> in HTTP GET example, both parameters should be set and the
<hcAuth> parameter should be set to 1.
•
2.16.3.5
2.16.3.5.1
FTP GET:
***************************************
Comment Service Setup Profile FTP GET
***************************************
 
Subscr 1 Send: AT^SISS=5,srvType,FTP
Subscr 1 Receive: AT^SISS=5,srvType,FTP
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=5,alphabet,1
Subscr 1 Receive: AT^SISS=5,alphabet,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=5,tcpMR,3
Subscr 1 Receive: AT^SISS=5, tcpMR,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=5,tcpOT,3000
Subscr 1 Receive: AT^SISS=5,tcpOT,3000
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=5,conId,1
Subscr 1 Receive: AT^SISS=5,conId,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=5,address,"ftp://test1:xxxxx@wmae.com/"
Subscr 1 Receive: AT^SISS=5,address,"ftp://test1:xxxxx@wmae.com/"
Subscr 1 Receive: OK
 
 
 
 
 
 
 
 
 
 
 
 
FTP PUT:
***************************************
Comment Service Setup Profile FTP PUT
***************************************
 
Subscr 1 Send: AT^SISS=0,srvType,FTP
Subscr 1 Receive: AT^SISS=0,srvType,FTP
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,alphabet,1
Subscr 1 Receive: AT^SISS=0,alphabet,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,conId,1
Subscr 1 Receive: AT^SISS=0,conId,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,tcpMR,3
Subscr 1 Receive: AT^SISS=0, tcpMR,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,tcpOT,3000
Subscr 1 Receive: AT^SISS=0,tcpOT,3000
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,address,"ftpput://test1:xxxxx@wmae.com/test.txt;type=a;mode=a"
Subscr 1 Receive: AT^SISS=0,address,"ftpput://test1:xxxxx@wmae.com/test.txt;type=a; mode=a"
Subscr 1 Receive: OK
2.16.3.5.2
***************************************
Comment Service Setup Profile SMTP
***************************************
 
Subscr 1 Send: AT^SISS=1,srvType,SMTP
Subscr 1 Receive: AT^SISS=1,srvType,SMTP
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,alphabet,1
Subscr 1 Receive: AT^SISS=1,alphabet,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,user,m35070649-mu
Subscr 1 Receive: AT^SISS=1,user, m35070649-mu
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,passwd,xxxxxxx
Subscr 1 Receive: AT^SISS=1,passwd,xxxxxxx
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,address,smtp.1und1.de
Subscr 1 Receive: AT^SISS=1,address,smtp.1und1.de
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,tcpMR,3
Subscr 1 Receive: AT^SISS=0, tcpMR,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,tcpOT,3000
Subscr 1 Receive: AT^SISS=0,tcpOT,3000
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,conId,0
Subscr 1 Receive: AT^SISS=1,conId,0
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,tcpPort,25
Subscr 1 Receive: AT^SISS=1,tcpPort,25
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,smFrom,mailuser@wmae.com
Subscr 1 Receive: AT^SISS=1,smFrom, mailuser@wmae.com
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,smRcpt, mailuser@wmae.com
Subscr 1 Receive: AT^SISS=1,smRcpt, mailuser@wmae.com
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,smCC, b3b@freenet.de
Subscr 1 Receive: AT^SISS=1,smCC, b3b@freenet.de
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,smSubj,Test
Subscr 1 Receive: AT^SISS=1,smSubj,Test
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,smHdr,"Date: Thu, 22 Dec 2005 11:33:35 +0200\0a\0dOrganization:
Siemens Berlin"
Subscr 1 Receive: AT^SISS=1,smHdr,"Date: Thu, 22 Dec 2005 11:33:35 +0200\0a\0dOrganization:
Siemens Berlin"
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=1,smAuth,1
Subscr 1 Receive: AT^SISS=1,smAuth,1
Subscr 1 Receive: OK
2.16.3.5.3
***************************************
Comment Service Setup Profile POP3
***************************************
 
Subscr 1 Send: AT^SISS=2,srvType,POP3
Subscr 1 Receive: AT^SISS=2,srvType,POP3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,alphabet,1
Subscr 1 Receive: AT^SISS=2,alphabet,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,user,mailuser@wmae.com
Subscr 1 Receive: AT^SISS=2,user,mailuser@wmae.com
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,passwd,xxxxxxx
Subscr 1 Receive: AT^SISS=2,passwd,xxxxxxx
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,address, wmae.com
Subscr 1 Receive: AT^SISS=2,address, wmae.com
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,tcpMR,3
Subscr 1 Receive: AT^SISS=2, tcpMR,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,tcpOT,3000
Subscr 1 Receive: AT^SISS=2,tcpOT,3000
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,tcpPort,110
Subscr 1 Receive: AT^SISS=2,tcpPort,110
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,conId,1
Subscr 1 Receive: AT^SISS=2,conId,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,pCmd,3
Subscr 1 Receive: AT^SISS=2,pCmd,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,pNumber,1
Subscr 1 Receive: AT^SISS=2,pNumber,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,pLength,0
Subscr 1 Receive: AT^SISS=2,pLength,0
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=2,pDelFlag,0
Subscr 1 Receive: AT^SISS=2,pDelFlag,0
Subscr 1 Receive: OK
2.16.3.5.4
Socket Client UDP Initialization:
***************************************
Comment Service Setup Profile Socket Client UDP
***************************************
 
Subscr 1 Send: AT^SISS=3,srvType,socket
Subscr 1 Receive: AT^SISS=3,srvType,socket
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=3,alphabet,1
Subscr 1 Receive: AT^SISS=3,alphabet,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=3,tcpMR,3
Subscr 1 Receive: AT^SISS=3, tcpMR,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=3,tcpOT,3000
Subscr 1 Receive: AT^SISS=3,tcpOT,3000
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=3,address,sockudp://130.149.17.15:7
Subscr 1 Receive: AT^SISS=3,address,sockudp://130.149.17.15:7
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=3,conId,1
Subscr 1 Receive: AT^SISS=3,conId,1
Subscr 1 Receive: OK
 
Socket Listener TCP Initialization:
***************************************
Comment Service Setup Profile Socket Listener TCP
***************************************
 
Subscr 1 Send: AT^SISS=0,srvType,socket
Subscr 1 Receive: AT^SISS=0,srvType,socket
Subscr 1 Receive:
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,alphabet,1
Subscr 1 Receive: AT^SISS=0,alphabet,1
Subscr 1 Receive:
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,tcpMR,15
Subscr 1 Receive: AT^SISS=0,tcpMR,15
Subscr 1 Receive:
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,tcpOT,3000
Subscr 1 Receive: AT^SISS=0,tcpOT,3000
Subscr 1 Receive:
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,address,socktcp://listener:9999
Subscr 1 Receive: AT^SISS=0,address,socktcp://listener:9999
Subscr 1 Receive:
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=0,conId,0
Subscr 1 Receive: AT^SISS=0,conId,0
Subscr 1 Receive:
Subscr 1 Receive: OK
Socket Client TCP Initialization:
***************************************
Comment Service Setup Profile Socket Client TCP
***************************************
 
Subscr 2 Send: AT^SISS=0,srvType,socket
Subscr 2 Receive: AT^SISS=0,srvType,socket
Subscr 2 Receive:
Subscr 2 Receive: OK
Subscr 2 Send: AT^SISS=0,alphabet,1
Subscr 2 Receive: AT^SISS=0,alphabet,1
Subscr 2 Receive:
Subscr 2 Receive: OK
Subscr 2 Send: AT^SISS=0,tcpMR,15
Subscr 2 Receive: AT^SISS=0,tcpMR,15
Subscr 2 Receive:
Subscr 2 Receive: OK
Subscr 2 Send: AT^SISS=0,tcpOT,3000
Subscr 2 Receive: AT^SISS=0,tcpOT,3000
Subscr 2 Receive:
Subscr 2 Receive: OK
Subscr 2 Send: AT^SISS=0,address,socktcp://10.10.0.69:9999
Subscr 2 Receive: AT^SISS=0,address,socktcp://10.10.0.69:9999
Subscr 2 Receive:
Subscr 2 Receive: OK
Subscr 2 Send: AT^SISS=0,conId,0
Subscr 2 Receive: AT^SISS=0,conId,0
Subscr 2 Receive:
Subscr 2 Receive: OK
2.16.3.5.5
***************************************
Comment Service Setup Profile HTTP
***************************************
 
Subscr 1 Send: AT^SISS=4,srvType,http
Subscr 1 Receive: AT^SISS=4,srvType,http
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,alphabet,0
Subscr 1 Receive: AT^SISS=4,alphabet,0
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,conId,1
Subscr 1 Receive: AT^SISS=4,conId,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,address,http://www.wmae.com:80
Subscr 1 Receive: AT^SISS=4,address,http://www.wmae.com:80
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,tcpMR,3
Subscr 1 Receive: AT^SISS=4, tcpMR,3
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,tcpOT,3000
Subscr 1 Receive: AT^SISS=4,tcpOT,3000
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,hcUsrAgent,MC75/4.1
Subscr 1 Receive: AT^SISS=4,hcUsrAgent,MC75/4.1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,hcMethod,0
Subscr 1 Receive: AT^SISS=4,hcMethod,0
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,hcProp,Accept-Encoding: identity
Subscr 1 Receive: AT^SISS=4,hcProp,Accept-Encoding: identity
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,hcRedir,1
Subscr 1 Receive: AT^SISS=4,hcRedir,1
Subscr 1 Receive: OK
Subscr 1 Send: AT^SISS=4,hcAuth,0
Subscr 1 Receive: AT^SISS=4,hcAuth,0
Subscr 1 Receive: OK